FROM adoptopenjdk/openjdk8-openj9:alpine-slim

MAINTAINER danshou fan5487464@foxmail.com

ADD /target/*-boot.jar mocha-bss.jar

EXPOSE 8808

ENTRYPOINT java -Xmn1024m -Xms2048m -Xmx2048m -XX:MaxMetaspaceSize=256m -XX:MetaspaceSize=256m -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/logs/bss-oom.dump -jar /mocha-bss.jar
#ENTRYPOINT java $JVM_OPTS -Xshareclasses -Xquickstart -Duser.timezone=GMT+8 -javaagent:/usr/skywalking/agent/skywalking-agent.jar -Dskywalking.agent.service_name=${SW_AGENT_NAME} -Dskywalking.logging.file_name=${SW_LOGGING_FILE_NAME} -Dskywalking.collector.backend_service=${SW_AGENT_COLLECTOR_BACKEND_SERVICES}  -jar /fan-gateway.jar

